package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author Administrator
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商城商品sku实体")
public class ShopGoodsSku {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "bizNo", value = "sku_no，做修改规格时处理", dataType = "String")
    private String bizNo;

    @ApiModelProperty(name = "goodsNo", value = "关联商品", dataType = "String")
    private String goodsNo;

    @ApiModelProperty(name = "img", value = "sku相关图", dataType = "String")
    private String img;

    @ApiModelProperty(name = "name", value = "sku名称", dataType = "String")
    private String name;

    @ApiModelProperty(name = "price", value = "价格", dataType = "BigDecimal")
    private BigDecimal price;

    @ApiModelProperty(name = "scribingPrice", value = "划线价格", dataType = "BigDecimal")
    private BigDecimal scribingPrice;

    @ApiModelProperty(name = "vipPrice", value = "会员价格", dataType = "BigDecimal")
    private BigDecimal vipPrice;

    @ApiModelProperty(name = "againPrice", value = "复购价格", dataType = "BigDecimal")
    private BigDecimal againPrice;

    @ApiModelProperty(name = "vipPrice", value = "商品特价", dataType = "BigDecimal")
    private BigDecimal specialPrice;

    @ApiModelProperty(name = "returnPoints", value = "赠送积分", dataType = "Integer")
    private Integer returnPoints;

    @ApiModelProperty(name = "stock", value = "库存", dataType = "Integer")
    private Integer stock;

    @ApiModelProperty(name = "salesVolume", value = "销量", dataType = "Integer")
    private Integer salesVolume;

    @ApiModelProperty(name = "isDeleted", value = "是否删除", dataType = "Boolean")
    private Boolean isDeleted;

    @TableField(exist = false)
    @ApiModelProperty(name = "goodsName", value = "商品名称", dataType = "String")
    private String goodsName;

}